package com.hu.service;

import com.hu.bookstorecommon.entity.user;
import com.hu.mapper.userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userServiceImpl implements userService{
    @Autowired
    private userMapper userMapper;
    @Override
    public user login(String username) {
        return userMapper.login(
                username
        );
    }

    @Override
    public Integer userRegister(user user) {
        return userMapper.userRegister(user);
    }
}
